package com.ruoyi.quartz.service.impl;

import com.ruoyi.quartz.domain.BaseProduct;
import com.ruoyi.quartz.mapper.BaseProductMapper;
import com.ruoyi.quartz.service.IBaseProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BaseProductServiceImpl implements IBaseProductService {

    @Resource
    private BaseProductMapper baseProductMapper;

    @Override
    public List<BaseProduct> selectAll(BaseProduct baseProduct) {
        return baseProductMapper.selectAll(baseProduct);
    }

    @Override
    public int addProduct(BaseProduct baseProduct) {
        return baseProductMapper.addProduct(baseProduct);
    }

    @Override
    public int updateProduct(BaseProduct baseProduct) {
        return baseProductMapper.updateProduct(baseProduct);
    }

    @Override
    public int deleteProductByIds(Integer[] ids) {
        return baseProductMapper.deleteProductByIds(ids);
    }

    @Override
    public BaseProduct selectProductById(Integer id) {
        return baseProductMapper.selectProductById(id);
    }
}
